package com.yanqu.road.entity.log.cross.biaoju;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.utils.date.DateHelper;

import java.util.Date;
import java.util.Map;

@FieldTypeAnnotation(desc = "镖局刷新日志", tableName = "t_l_ck_biaoju_log_refresh", autoSave = true, uploadCk = true, isCross = true)
public class LogBiaoJuRefresh extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组", isIndex = true)
    private int unionGroup;
    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "刷新类型0免费1消耗道具")
    private int refreshType;
    @FieldTypeAnnotation(desc = "刷出来的镖单品质-是否优质镖")
    private Map<Integer, Integer> escortMap;
    @FieldTypeAnnotation(desc = "时间")
    private long logTime;

    public LogBiaoJuRefresh(int activityId, int unionGroup, long userId, int refreshType, Map<Integer, Integer> escortMap) {
        this.activityId = activityId;
        this.unionGroup = unionGroup;
        this.userId = userId;
        this.refreshType = refreshType;
        this.escortMap = escortMap;
        this.logTime = DateHelper.getCurrentTime();
    }

    public int getActivityId() {
        return activityId;
    }

    public int getUnionGroup() {
        return unionGroup;
    }

    public long getUserId() {
        return userId;
    }

    public int getRefreshType() {
        return refreshType;
    }

    public Map<Integer, Integer> getEscortMap() {
        return escortMap;
    }

    public long getLogTime() {
        return logTime;
    }
}
